﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Web7.Core.Apps;

namespace Web7.Container
{
    public class ContainerApp : App, IAppMetaData
    {
        public override string AppName
        {
            get { return "Container"; }
        }

        public override void RegisterRoutes()
        {
            MapRoute("Admin.Index",
                "Admin/Index",
                new { controller = "Admin", action = "Index" },
                null,
                new string[] { "Web7.Container.Controllers" });

            MapRoute("Admin",
                "Admin",
                new { controller = "Admin", action = "Index" },
                null,
                new string[] { "Web7.Container.Controllers" });

            MapRoute("Admin.TestAjaxJson",
                "Admin/TestAjaxJson",
                new { controller = "Admin", action = "TestAjaxJson" },
                null,
                new string[] { "Web7.Container.Controllers" });

            MapRoute("Default",
               "",
               new { controller = "Front", action = "Entry" },
               null,
               new string[] { "Web7.Container.Controllers" });

            MapRoute("UserCenter",
                "UserCenter",
                new { controller = "UserCenter", action = "Index" },
                null,
                new string[] { "Web7.Container.Controllers" });
        }

        public List<AppMenuItem> GetAppMenus()
        {
            throw new NotImplementedException();
        }

        public List<PermissionInput> GetAppPermissions()
        {
            throw new NotImplementedException();
        }
    }
}
